package com.example.experiment3.observerPattern;

public class WeChatUser  implements Observer{
    private String name;

    public WeChatUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println("微信用户："+ name +  "接收到公众号新推送 ——  " + message);
    }
}
